# Makefile for K-means clustering algorithm

# 编译器设置
CXX = g++
CXXFLAGS = -std=c++17 -O3 -Wall -Wextra

# 目标文件
TARGET = kmeans

# 源文件
SRC = kmeans.cpp

# 默认目标
all: $(TARGET)

# 编译规则
$(TARGET): $(SRC)
	$(CXX) $(CXXFLAGS) -fopenmp -o $@ $<

# 运行程序
run: $(TARGET)
	./$(TARGET)

# 清理目标
clean:
	rm -f $(TARGET)

# 伪目标声明
.PHONY: all run clean
